import axios from "axios";
import {message} from "antd";

const sytRequest = axios.create({
    baseURL: '/syt'
});
sytRequest.interceptors.response.use((res:any) => {
    if (res.data.code === 200) return res.data;
    message.error(res.data.message)
    // return new Promise(() => {});
    return Promise.reject(res.data);
})
export default sytRequest;